package name.wilbur.course.db.bigone.model;
/**
 * @author wilbur
 */
public class Friend extends BaseDBModel {
	private int userID;
	private int userID2;
	
	public Friend() {
	}

	public Friend(int id, int id2) {
		this.userID = id;
		this.userID2 = id2;
	}
	
	public int getUserID() {
		return userID;
	}

	public void setUserID(int userID) {
		this.userID = userID;
	}

	public int getUserID2() {
		return userID2;
	}

	public void setUserID2(int userID2) {
		this.userID2 = userID2;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + userID;
		result = prime * result + userID2;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		Friend other = (Friend) obj;
		if (userID != other.userID)
			return false;
		if (userID2 != other.userID2)
			return false;
		return true;
	}

}
